#include "cnsGlobal.h"

namespace c_cns {

void ref(void **data, CnsRef* ref){
    *data = ref;
    ref->retain();
}

void release(CnsRef **data){
    (*data)->release();
    *data = nullptr;
}
}
